a54cb0daa3
requested by ajacoutot@
20 lines
630 B
Plaintext
20 lines
630 B
Plaintext
$OpenBSD: patch-tests_testing_c,v 1.2 2009/12/28 17:35:19 phessler Exp $
|
|
|
|
gcc2.95 fixes
|
|
|
|
--- tests/testing.c.orig Mon Dec 28 08:17:07 2009
|
|
+++ tests/testing.c Mon Dec 28 08:20:13 2009
|
|
@@ -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) :
|