Page MenuHomeFreeBSD

D10097.diff
No OneTemporary

D10097.diff

Index: head/usr.sbin/ctm/ctm/ctm_pass1.c
===================================================================
--- head/usr.sbin/ctm/ctm/ctm_pass1.c
+++ head/usr.sbin/ctm/ctm/ctm_pass1.c
@@ -114,6 +114,7 @@
}
if (name[0] == '/') {
Fatal("Absolute paths are illegal.");
+ Delete(name);
return Exit_Mess;
}
q = name;
@@ -121,6 +122,7 @@
if (q[0] == '.' && q[1] == '.')
if (q[2] == '/' || q[2] == '\0') {
Fatal("Paths containing '..' are illegal.");
+ Delete(name);
return Exit_Mess;
}
if ((q = strchr(q, '/')) == NULL)

File Metadata

Mime Type
text/plain
Expires
Sun, Apr 19, 8:56 PM (8 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31797654
Default Alt Text
D10097.diff (590 B)

Event Timeline