* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Fix
wrong usage of S_IFDIR. * security.cc (get_attribute_from_acl): Ditto. (get_file_attribute): Fix wrong usage of S_IFLNK. (get_object_attribute): Ditto. (alloc_sd): Fix wrong usage of S_IFDIR. * syscalls.cc (chmod): Allow chmod'ing of socket files.
This commit is contained in:
		@@ -305,7 +305,7 @@ fhandler_disk_file::fstat_helper (struct __stat64 *buf, path_conv *pc,
 | 
			
		||||
	buf->st_mode |= STD_WBITS;
 | 
			
		||||
      /* | S_IWGRP | S_IWOTH; we don't give write to group etc */
 | 
			
		||||
 | 
			
		||||
      if (buf->st_mode & S_IFDIR)
 | 
			
		||||
      if (S_ISDIR (buf->st_mode))
 | 
			
		||||
	buf->st_mode |= S_IFDIR | STD_XBITS;
 | 
			
		||||
      else if (buf->st_mode & S_IFMT)
 | 
			
		||||
	/* nothing */;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user