src/server/daemon/vfs.c

changeset 486
133118c79f4e
parent 450
d7b276de183b
child 490
d218607f5a7e
equal deleted inserted replaced
485:222557f4f595 486:133118c79f4e
391 } 391 }
392 return NULL; 392 return NULL;
393 } 393 }
394 394
395 // if a file system acl is active, we set the owner for newly created files 395 // if a file system acl is active, we set the owner for newly created files
396 if(((oflags & O_CREAT) == O_CREAT) && sysacl.user_uid != -1) { 396 if(((oflags & O_CREAT) == O_CREAT) && sysacl.acl) {
397 if(fchown(fd, sysacl.user_uid, sysacl.user_gid)) { 397 if(fchown(fd, sysacl.user_uid, sysacl.user_gid)) {
398 perror("vfs_open: fchown"); 398 perror("vfs_open: fchown");
399 system_close(fd); 399 system_close(fd);
400 return NULL; 400 return NULL;
401 } 401 }

mercurial