FreeBSD Bugzilla – Attachment 6845 Details for
Bug 15227
New option for vacation(1) -- dir to use instead of $HOME
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 688 bytes, created by
Mikhail Teterin
on 1999-12-02 18:20:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Mikhail Teterin
Created:
1999-12-02 18:20:01 UTC
Size:
688 bytes
patch
obsolete
>--- vacation.c.orig Tue Sep 28 18:42:09 1999 >+++ usr.bin/vacation/vacation.c Thu Dec 2 12:45:08 1999 >@@ -117,2 +117,3 @@ > int ch, iflag, lflag, mfail, ufail; >+ char *dir = NULL; > >@@ -120,3 +121,3 @@ > interval = -1; >- while ((ch = getopt(argc, argv, "a:dIilr:")) != -1) { >+ while ((ch = getopt(argc, argv, "a:dIilr:D:")) != -1) { > switch((char)ch) { >@@ -150,2 +151,5 @@ > break; >+ case 'D': >+ dir = optarg; >+ break; > case '?': >@@ -183,5 +187,7 @@ > } >- if (chdir(pw->pw_dir)) { >+ if (!dir) >+ dir = pw->pw_dir; >+ if (chdir(dir)) { > msglog(LOG_NOTICE, >- "vacation: no such directory %s.\n", pw->pw_dir); >+ "vacation: %s: %s.\n", dir, strerror(errno)); > exit(1);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 15227
: 6845 |
6846