mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
Fix build on 4.X.
PR: 93271
This commit is contained in:
parent
7272553fca
commit
489c4edaf7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=156044
@ -1,6 +1,19 @@
|
|||||||
--- tests/testing.c.orig Thu Oct 27 12:51:03 2005
|
--- tests/testing.c.orig Thu Oct 27 10:51:03 2005
|
||||||
+++ tests/testing.c Tue Feb 7 08:10:40 2006
|
+++ tests/testing.c Tue Feb 14 17:46:01 2006
|
||||||
@@ -486,9 +486,9 @@
|
@@ -376,11 +376,11 @@ processCommand(char *line, int no)
|
||||||
|
}
|
||||||
|
printf("chmod %s to %s\n", arg, arg2);
|
||||||
|
} else if (!strcmp(command, "chown")) {
|
||||||
|
+ struct stat sb;
|
||||||
|
if (args != 3) {
|
||||||
|
fprintf(stderr, "chown line %d: lacks path and owner\n", no);
|
||||||
|
return (-1);
|
||||||
|
}
|
||||||
|
- struct stat sb;
|
||||||
|
if (!lstat (arg, &sb)) {
|
||||||
|
ret = (S_ISLNK (sb.st_mode)) ?
|
||||||
|
lchown(arg, strtol(arg2, NULL, 10), -1) :
|
||||||
|
@@ -486,9 +486,9 @@ processCommand(char *line, int no)
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user