X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fdir.c;h=5945862eb045ab450580965c12187493bd6d19a5;hb=a9b0a6d54fe5fa6564f657650d4608240c71ea3a;hp=a8f066fd149f5215b2ead5f14fc73a4b8ad508c8;hpb=78029b529ad98769685d607230b70f71832d5906;p=libguestfs.git diff --git a/daemon/dir.c b/daemon/dir.c index a8f066f..5945862 100644 --- a/daemon/dir.c +++ b/daemon/dir.c @@ -123,8 +123,8 @@ recursive_mkdir (const char *path) r = lstat (path, &buf); if (r == -1) return -1; if (!S_ISDIR (buf.st_mode)) { - errno = ENOTDIR; - return -1; + errno = ENOTDIR; + return -1; } return 0; /* OK - directory exists here already. */ }