diff options
Diffstat (limited to 'clients/xzwrite/gethomedir.c')
-rw-r--r-- | clients/xzwrite/gethomedir.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/clients/xzwrite/gethomedir.c b/clients/xzwrite/gethomedir.c deleted file mode 100644 index ffd25bf..0000000 --- a/clients/xzwrite/gethomedir.c +++ /dev/null @@ -1,16 +0,0 @@ -#include <stdio.h> -#include <pwd.h> -#include "xzwrite.h" - -char *get_home_dir() -{ - struct passwd *pwuid; - static char *h = NULL; - - if (h) return h; - - if ((h = getenv("HOME")) != NULL) return h; - - pwuid = getpwuid(getuid()); - return (pwuid->pw_dir); -} |