projects
/
unix-history
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d2ae4d1
)
Try copy if rename of temporary catpage fails.
author
Jordan K. Hubbard
<jkh@FreeBSD.org>
Sun, 10 Oct 1993 01:46:53 +0000
(
01:46
+0000)
committer
Jordan K. Hubbard
<jkh@FreeBSD.org>
Sun, 10 Oct 1993 01:46:53 +0000
(
01:46
+0000)
gnu/usr.bin/man/man/man.c
patch
|
blob
|
blame
|
history
diff --git
a/gnu/usr.bin/man/man/man.c
b/gnu/usr.bin/man/man/man.c
index
a96f2a2
..
c5b4ee0
100644
(file)
--- a/
gnu/usr.bin/man/man/man.c
+++ b/
gnu/usr.bin/man/man/man.c
@@
-1087,7
+1087,12
@@
make_cat_file (path, man_file, cat_file)
}
else {
if (rename(temp, cat_file) == -1) {
}
else {
if (rename(temp, cat_file) == -1) {
- perror("rename");
+ /* FS might be sticky */
+ sprintf(command, "cp %s %s", temp, cat_file);
+ if (system(command))
+ fprintf(stderr,
+ "\nHmm! Can't seem to rename %s to %s, check permissions on man dir!\n",
+ temp, cat_file);
unlink(temp);
return 0;
}
unlink(temp);
return 0;
}