X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fdir.c;h=bc54d518a1fb855c7c5c748c6c4582a563f05d18;hp=3a4647cd142990a3e6cb14743cc2c55105004a82;hb=3a99114360636806078bbf614c241e89661bcc7f;hpb=55b6e18f95950b1a2ec69d549c9e6c8a5758d166 diff --git a/daemon/dir.c b/daemon/dir.c index 3a4647c..bc54d51 100644 --- a/daemon/dir.c +++ b/daemon/dir.c @@ -190,28 +190,6 @@ do_mkdir_p (const char *path) return 0; } -int -do_is_dir (const char *path) -{ - int r; - struct stat buf; - - CHROOT_IN; - r = lstat (path, &buf); - CHROOT_OUT; - - if (r == -1) { - if (errno != ENOENT && errno != ENOTDIR) { - reply_with_perror ("stat: %s", path); - return -1; - } - else - return 0; /* Not a directory. */ - } - - return S_ISDIR (buf.st_mode); -} - char * do_mkdtemp (const char *template) {