Check-in [ff9238cef4]
Overview
SHA1:ff9238cef430b60d9977ed6fc9f4554c61272516
Date: 2014-12-29 03:49:41
User: rkeene
Comment:Updated to exit in success from "-h" and to ignore the "-v" option
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2014-12-29
03:50
[94a220b715] Post-release version increment (a tad late) (user: rkeene, tags: trunk)
03:49
[ff9238cef4] Updated to exit in success from "-h" and to ignore the "-v" option (user: rkeene, tags: trunk)
2014-12-01
02:02
[42a3efcd94] Updated to not try to update package information for each sites when stat()'ing them (user: rkeene, tags: trunk)
Changes

Modified appfsd.c from [bb0851401c] to [7c511aec25].

  1982   1982   	fuse_opt_add_arg(args, "-odefault_permissions,fsname=appfs,subtype=appfsd,use_ino,kernel_cache,entry_timeout=0,attr_timeout=0,big_writes,intr,hard_remove");
  1983   1983   
  1984   1984   	if (getuid() == 0) {
  1985   1985   		fuse_opt_parse(args, NULL, NULL, NULL);
  1986   1986   		fuse_opt_add_arg(args, "-oallow_other");
  1987   1987   	}
  1988   1988   
  1989         -	while ((ch = getopt(argc, argv, "dfsho:")) != -1) {
         1989  +	while ((ch = getopt(argc, argv, "dfshvo:")) != -1) {
  1990   1990   		switch (ch) {
         1991  +			case 'v':
         1992  +				/* Ignored */
         1993  +				break;
  1991   1994   			case 'o':
  1992   1995   				optstr_next = optstr = optstr_s = strdup(optarg);
  1993   1996   
  1994   1997   				while (1) {
  1995   1998   					optstr = optstr_next;
  1996   1999   
  1997   2000   					if (!optstr) {
................................................................................
  2043   2046   
  2044   2047   				fuse_opt_parse(args, NULL, NULL, NULL);
  2045   2048   				fuse_opt_add_arg(args, fake_arg);
  2046   2049   				break;
  2047   2050   			case 'h':
  2048   2051   				appfs_print_help(stdout);
  2049   2052   
  2050         -				return(0);
         2053  +				return(-1);
  2051   2054   			case ':':
  2052   2055   			case '?':
  2053   2056   			default:
  2054   2057   				appfs_print_help(stderr);
  2055   2058   
  2056   2059   				return(1);
  2057   2060   		}
................................................................................
  2209   2212   	argv[0] = argv0;
  2210   2213   
  2211   2214   	/**
  2212   2215   	 ** Perform the argument parsing
  2213   2216   	 **/
  2214   2217   	aop_ret = appfs_opt_parse(argc, argv, &args);
  2215   2218   	if (aop_ret != 0) {
         2219  +		if (aop_ret < 0) {
         2220  +			return(0);
         2221  +		}
         2222  +
  2216   2223   		return(aop_ret);
  2217   2224   	}
  2218   2225   
  2219   2226   	/*
  2220   2227   	 * Create a Tcl interpreter just to verify that things are in working 
  2221   2228   	 * order before we become a daemon.
  2222   2229   	 */