version 1.41, 2014/05/18 08:10:00 |
version 1.42, 2015/01/16 06:40:07 |
|
|
* SUCH DAMAGE. |
* SUCH DAMAGE. |
*/ |
*/ |
|
|
#include <sys/param.h> |
|
#include <sys/ucred.h> |
|
#include <sys/stat.h> |
#include <sys/stat.h> |
#include <sys/wait.h> |
#include <sys/wait.h> |
#include <sys/mount.h> |
#include <sys/mount.h> |
|
|
for (p = *argv; *p; ++p) |
for (p = *argv; *p; ++p) |
if (p[0] == '{' && p[1] == '}') { |
if (p[0] == '{' && p[1] == '}') { |
new->e_argv[cnt] = |
new->e_argv[cnt] = |
emalloc((u_int)MAXPATHLEN); |
emalloc((u_int)PATH_MAX); |
new->e_len[cnt] = MAXPATHLEN; |
new->e_len[cnt] = PATH_MAX; |
break; |
break; |
} |
} |
if (!*p) { |
if (!*p) { |
|
|
int cnt; |
int cnt; |
pid_t pid; |
pid_t pid; |
int status, fd; |
int status, fd; |
char base[MAXPATHLEN]; |
char base[PATH_MAX]; |
|
|
/* fts(3) does not chdir for the root level so we do it ourselves. */ |
/* fts(3) does not chdir for the root level so we do it ourselves. */ |
if (entry->fts_level == FTS_ROOTLEVEL) { |
if (entry->fts_level == FTS_ROOTLEVEL) { |
|
|
new->e_orig[cnt] = *argv; |
new->e_orig[cnt] = *argv; |
for (p = *argv; *p; ++p) |
for (p = *argv; *p; ++p) |
if (p[0] == '{' && p[1] == '}') { |
if (p[0] == '{' && p[1] == '}') { |
new->e_argv[cnt] = emalloc((u_int)MAXPATHLEN); |
new->e_argv[cnt] = emalloc((u_int)PATH_MAX); |
new->e_len[cnt] = MAXPATHLEN; |
new->e_len[cnt] = PATH_MAX; |
break; |
break; |
} |
} |
if (!*p) { |
if (!*p) { |