Apple Darwin port
This commit is contained in:
parent
4fb3838021
commit
14cfc46ce4
10 changed files with 65 additions and 22 deletions
|
|
@ -328,6 +328,7 @@ expand_dir(char *dir,
|
|||
strerror(errno));
|
||||
goto quit;
|
||||
}
|
||||
#ifndef __APPLE__
|
||||
if (0 &&detail){
|
||||
if ((pw = getpwuid(st.st_uid)) == NULL){
|
||||
fprintf(stderr, "expand_dir: getpwuid(%d): %s\n",
|
||||
|
|
@ -361,6 +362,7 @@ expand_dir(char *dir,
|
|||
);
|
||||
cmd = str;
|
||||
}
|
||||
#endif /* __APPLE__ */
|
||||
if (((*commands) =
|
||||
realloc(*commands, ((*nr)+1)*sizeof(char**))) == NULL){
|
||||
perror("expand_dir: realloc");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue