main.c (85019) | main.c (85470) |
---|---|
1#ifndef lint 2static const char rcsid[] = | 1#ifndef lint 2static const char rcsid[] = |
3 "$FreeBSD: head/usr.sbin/pkg_install/create/main.c 85019 2001-10-16 03:04:15Z sobomax $"; | 3 "$FreeBSD: head/usr.sbin/pkg_install/create/main.c 85470 2001-10-25 07:56:20Z sobomax $"; |
4#endif 5 6/* 7 * FreeBSD install - a package for the installation and maintainance 8 * of non-core utilities. 9 * 10 * Jordan K. Hubbard 11 * 18 July 1993 --- 124 unchanged lines hidden (view full) --- 136 Origin = optarg; 137 break; 138 139 case 'y': 140 UseBzip2 = TRUE; 141 break; 142 143 case 'b': | 4#endif 5 6/* 7 * FreeBSD install - a package for the installation and maintainance 8 * of non-core utilities. 9 * 10 * Jordan K. Hubbard 11 * 18 July 1993 --- 124 unchanged lines hidden (view full) --- 136 Origin = optarg; 137 break; 138 139 case 'y': 140 UseBzip2 = TRUE; 141 break; 142 143 case 'b': |
144 InstalledPkg = optarg; |
|
144 while ((tmp = strrchr(optarg, (int)'/')) != NULL) { 145 *tmp++ = '\0'; 146 /* 147 * If character after the '/' is alphanumeric, then we've 148 * found the package name. Otherwise we've come across 149 * a trailing '/' and need to continue our quest. 150 */ 151 if (isalpha(*tmp)) { --- 50 unchanged lines hidden --- | 145 while ((tmp = strrchr(optarg, (int)'/')) != NULL) { 146 *tmp++ = '\0'; 147 /* 148 * If character after the '/' is alphanumeric, then we've 149 * found the package name. Otherwise we've come across 150 * a trailing '/' and need to continue our quest. 151 */ 152 if (isalpha(*tmp)) { --- 50 unchanged lines hidden --- |