@@ -43,7 +43,7 @@ CFURLRef _Nullable _CFKnownLocationCreatePreferencesURLForUser(CFKnownLocationUs
43
43
// passthrough to:
44
44
case _kCFKnownLocationUserByName : {
45
45
CFURLRef home = CFCopyHomeDirectoryURLForUser (username );
46
- location = CFURLCreateWithFileSystemPathRelativeToBase (kCFAllocatorSystemDefault , CFSTR ("/ Library/Preferences" ), kCFURLPOSIXPathStyle , true, home );
46
+ location = CFURLCreateWithFileSystemPathRelativeToBase (kCFAllocatorSystemDefault , CFSTR ("Library/Preferences" ), kCFURLPOSIXPathStyle , true, home );
47
47
CFRelease (home );
48
48
49
49
break ;
@@ -133,16 +133,16 @@ CFURLRef _Nullable _CFKnownLocationCreatePreferencesURLForUser(CFKnownLocationUs
133
133
CFURLRef userdir = CFCopyHomeDirectoryURL ();
134
134
switch (user ) {
135
135
case _kCFKnownLocationUserAny :
136
- location = CFURLCreateWithFileSystemPathRelativeToBase (kCFAllocatorSystemDefault , CFSTR ("/ Apple/Library/Preferences/AnyUser" ), kCFURLPOSIXPathStyle , true, userdir );
136
+ location = CFURLCreateWithFileSystemPathRelativeToBase (kCFAllocatorSystemDefault , CFSTR ("Apple/Library/Preferences/AnyUser" ), kCFURLPOSIXPathStyle , true, userdir );
137
137
break ;
138
138
case _kCFKnownLocationUserByName : {
139
- CFURLRef tmp = CFURLCreateWithFileSystemPathRelativeToBase (kCFAllocatorSystemDefault , CFSTR ("/ Apple/Library/Preferences/ByUser" ), kCFURLPOSIXPathStyle , true, userdir );
139
+ CFURLRef tmp = CFURLCreateWithFileSystemPathRelativeToBase (kCFAllocatorSystemDefault , CFSTR ("Apple/Library/Preferences/ByUser" ), kCFURLPOSIXPathStyle , true, userdir );
140
140
location = CFURLCreateWithFileSystemPathRelativeToBase (kCFAllocatorSystemDefault , username , kCFURLPOSIXPathStyle , true, tmp );
141
141
CFRelease (tmp );
142
142
break ;
143
143
}
144
144
case _kCFKnownLocationUserCurrent :
145
- location = CFURLCreateWithFileSystemPathRelativeToBase (kCFAllocatorSystemDefault , CFSTR ("/ Apple/Library/Preferences" ), kCFURLPOSIXPathStyle , true, userdir );
145
+ location = CFURLCreateWithFileSystemPathRelativeToBase (kCFAllocatorSystemDefault , CFSTR ("Apple/Library/Preferences" ), kCFURLPOSIXPathStyle , true, userdir );
146
146
break ;
147
147
}
148
148
CFRelease (userdir );
0 commit comments