@@ -1321,21 +1321,10 @@ */ if (argc == 2 && strcmp(argv[0], "--tcl") == 0) { return(appfs_tcl(argv[1])); } - /* - * Add FUSE arguments which we always supply - */ - fuse_opt_parse(&args, NULL, NULL, appfs_fuse_opt_cb); - fuse_opt_add_arg(&args, "-odefault_permissions,fsname=appfs,subtype=appfsd,use_ino,kernel_cache,entry_timeout=60,attr_timeout=3600,intr,big_writes"); - - if (getuid() == 0) { - fuse_opt_parse(&args, NULL, NULL, NULL); - fuse_opt_add_arg(&args, "-oallow_other"); - } - /* * Create a Tcl interpreter just to verify that things are in working * order before we become a daemon. */ test_interp = appfs_create_TclInterp(&test_interp_error); @@ -1348,14 +1337,25 @@ fprintf(stderr, "%s\n", test_interp_error); return(1); } Tcl_DeleteInterp(test_interp); + + /* + * Add FUSE arguments which we always supply + */ + fuse_opt_parse(&args, NULL, NULL, appfs_fuse_opt_cb); + fuse_opt_add_arg(&args, "-odefault_permissions,fsname=appfs,subtype=appfsd,use_ino,kernel_cache,entry_timeout=60,attr_timeout=3600,intr,big_writes"); + + if (getuid() == 0) { + fuse_opt_parse(&args, NULL, NULL, NULL); + fuse_opt_add_arg(&args, "-oallow_other"); + } /* * Enter the FUSE main loop -- this will process any arguments * and start servicing requests. */ appfs_fuse_started = 1; return(fuse_main(args.argc, args.argv, &appfs_operations, NULL)); }