damn, I spelt EACCES wrong.
authorAndrew Tridgell <tridge@samba.org>
Tue, 21 Oct 1997 13:15:20 +0000 (13:15 +0000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 21 Oct 1997 13:15:20 +0000 (13:15 +0000)
actually it's wrong in the linux man page for utime ...
(This used to be commit 267b56de10a20c25faee69cf4b6b6c02887ebe9c)

source3/smbd/server.c

index 5f925df68721f05b5d4a3c0a0aee8ec114c3e9bd..42b2a506cc13a0b66626fafb8210a4e66ccf2807 100644 (file)
@@ -323,7 +323,7 @@ int file_utime(int cnum, char *fname, struct utimbuf *times)
   if(sys_utime(fname, times) == 0)
     return 0;
 
-  if((errno != EPERM) && (errno != EACCESS))
+  if((errno != EPERM) && (errno != EACCES))
     return -1;
 
   if(!lp_dos_filetimes(SNUM(cnum)))