* Fix sys_chown() when no chown() is presend
authorStefan Metzmacher <metze@samba.org>
Thu, 15 Jan 2004 09:08:06 +0000 (09:08 +0000)
committerStefan Metzmacher <metze@samba.org>
Thu, 15 Jan 2004 09:08:06 +0000 (09:08 +0000)
metze

WHATSNEW.txt
source/lib/system.c

index 769270c7d8f3ab1477c8afc65c14eda513f7e86b..90513df8cdaa8a7be0d801445cc9fa0d8a3e6b5e 100644 (file)
@@ -45,6 +45,7 @@ o   Stefan Metzmacher <metze@samba.org>
     * Fix disk_free calculation with group quotas.
     * Add debug class 'quota' and a lot of DEBUG()'s 
       to the quota code.
+    * Fix sys_chown() when no chown() is presend
 
 o   Tim Potter <tpot@samba.org>
 
index 16384c8bdf5a2ccc90d9204d6ecfbe7c6a947374..a0007ec83cd277fc966e14fcacbfc4c64ab3ef9e 100644 (file)
@@ -490,6 +490,8 @@ int sys_chown(const char *fname,uid_t uid,gid_t gid)
                DEBUG(1,("WARNING: no chown!\n"));
                done=1;
        }
+       errno = ENOSYS;
+       return -1;
 #else
        return(chown(fname,uid,gid));
 #endif