From b0c0d736919079afc4f9bf5a406000048d26fe71 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 15 Jan 2004 09:08:06 +0000 Subject: [PATCH] * Fix sys_chown() when no chown() is presend metze --- WHATSNEW.txt | 1 + source/lib/system.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/WHATSNEW.txt b/WHATSNEW.txt index 769270c7d8f..90513df8cda 100644 --- a/WHATSNEW.txt +++ b/WHATSNEW.txt @@ -45,6 +45,7 @@ o Stefan Metzmacher * 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 diff --git a/source/lib/system.c b/source/lib/system.c index 16384c8bdf5..a0007ec83cd 100644 --- a/source/lib/system.c +++ b/source/lib/system.c @@ -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 -- 2.34.1