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 } |