Changeset 894 for trunk/src/z-file.c
- Timestamp:
- 05/11/08 22:18:36 (2 months ago)
- Files:
-
- trunk/src/z-file.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/z-file.c
r759 r894 30 30 #endif 31 31 32 #ifdef MACH_O_CARBON 33 # include <SystemConfiguration/SCDynamicStoreCopySpecific.h> 34 #endif 35 32 36 #ifdef HAVE_FCNTL_H 33 37 # include <fcntl.h> … … 149 153 150 154 /* Look up a user (or "current" user) */ 155 #ifndef MACH_O_CARBON 151 156 if (username) pw = getpwnam(username); 152 157 else pw = getpwuid(getuid()); 153 158 159 #else /* MACH_O_CARBON */ 160 161 /* On Macs look up the console user to avoid problems with invalid root detection */ 162 uid_t uid; 163 SCDynamicStoreCopyConsoleUser(NULL, &uid, NULL); 164 pw = getpwuid(uid); 165 #endif /* !MACH_O_CARBON */ 166 154 167 if (!pw) return; 155 168
