projects
/
shibboleth
/
cpp-sp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
732b76c
)
Check for a slash before unlinking.
author
Scott Cantor
<cantor.2@osu.edu>
Tue, 1 Jul 2003 15:46:42 +0000
(15:46 +0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Tue, 1 Jul 2003 15:46:42 +0000
(15:46 +0000)
shar/shar.c
patch
|
blob
|
history
diff --git
a/shar/shar.c
b/shar/shar.c
index
67e7fcd
..
81c1e70
100644
(file)
--- a/
shar/shar.c
+++ b/
shar/shar.c
@@
-237,8
+237,8
@@
static int parse_args(int argc, char* argv[])
while ((opt = getopt(argc, argv, "fFh")) > 0) {
switch (opt) {
case 'f':
- /* XXX: I know that this is a string on Unix */
-
unlink
(shib_target_sockname());
+ if (*(shib_target_sockname())=='/')
+
unlink
(shib_target_sockname());
break;
#if 0
case 'F':