Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/dist/tar/src seemingly more correct ".." patch by Solar ...
details: https://anonhg.NetBSD.org/src/rev/5f7df4c06f55
branches: trunk
changeset: 538004:5f7df4c06f55
user: itojun <itojun%NetBSD.org@localhost>
date: Wed Oct 09 19:58:35 2002 +0000
description:
seemingly more correct ".." patch by Solar Designer <solar%openwall.com@localhost>,
from bugtraq posting
diffstat:
gnu/dist/tar/src/misc.c | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
diffs (25 lines):
diff -r bc5a65147c7f -r 5f7df4c06f55 gnu/dist/tar/src/misc.c
--- a/gnu/dist/tar/src/misc.c Wed Oct 09 19:54:05 2002 +0000
+++ b/gnu/dist/tar/src/misc.c Wed Oct 09 19:58:35 2002 +0000
@@ -208,19 +208,12 @@
if (p[0] == '.' && p[1] == '.' && (ISSLASH (p[2]) || !p[2]))
return 1;
- do
+ while (! ISSLASH (*p))
{
if (! *p++)
return 0;
}
- while (! ISSLASH (*p));
-
- do
- {
- if (! *p++)
- return 0;
- }
- while ( ISSLASH (*p));
+ p++;
}
}
Home |
Main Index |
Thread Index |
Old Index