Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/pkg/pkg.c
Show First 20 Lines • Show All 1,126 Lines • ▼ Show 20 Lines | if ((bootstrap_only && force) || access(pkgpath, X_OK) == -1) { | ||||
if (bootstrap_only) | if (bootstrap_only) | ||||
exit(EXIT_SUCCESS); | exit(EXIT_SUCCESS); | ||||
} else if (bootstrap_only) { | } else if (bootstrap_only) { | ||||
printf("pkg already bootstrapped at %s\n", pkgpath); | printf("pkg already bootstrapped at %s\n", pkgpath); | ||||
exit(EXIT_SUCCESS); | exit(EXIT_SUCCESS); | ||||
} | } | ||||
printf("pkgpath is %s, argv= %s %s %s %s\n", pkgpath, argv[0], argv[1], argv[2], argv[3]); | |||||
execv(pkgpath, argv); | execv(pkgpath, argv); | ||||
/* NOT REACHED */ | /* NOT REACHED */ | ||||
return (EXIT_FAILURE); | return (EXIT_FAILURE); | ||||
} | } |