Diff

Differences From Artifact [71ddae3095]:

To Artifact [99b621ee4d]:


   783    783   	}
   784    784   
   785    785   	/*
   786    786   	 * Add FUSE arguments which we always supply
   787    787   	 */
   788    788   	fuse_opt_parse(&args, NULL, NULL, NULL);
   789    789   	fuse_opt_add_arg(&args, "-odefault_permissions,fsname=appfs,use_ino,kernel_cache,entry_timeout=60,attr_timeout=3600,intr,big_writes");
          790  +
          791  +	if (getuid() == 0) {
          792  +		fuse_opt_parse(&args, NULL, NULL, NULL);
          793  +		fuse_opt_add_arg(&args, "-oallow_other");
          794  +	}
   790    795   
   791    796   	/*
   792    797   	 * Enter the FUSE main loop -- this will process any arguments
   793    798   	 * and start servicing requests.
   794    799   	 */
   795    800   	return(fuse_main(args.argc, args.argv, &appfs_operations, NULL));
   796    801   }
   797    802