projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
71b43c2
)
Broke long lines.
author
markus schnalke
<meillo@marmaro.de>
Tue, 1 Nov 2011 14:55:31 +0000
(15:55 +0100)
committer
markus schnalke
<meillo@marmaro.de>
Tue, 1 Nov 2011 14:55:31 +0000
(15:55 +0100)
sbr/context_read.c
patch
|
blob
|
history
diff --git
a/sbr/context_read.c
b/sbr/context_read.c
index
ea7d5da
..
0995d4f
100644
(file)
--- a/
sbr/context_read.c
+++ b/
sbr/context_read.c
@@
-44,11
+44,12
@@
context_read(void)
return;
/*
return;
/*
- ** Find user's home directory. Try the HOME environment variable first,
+ ** Find user's home directory. Try the HOME environment variable first,
** the home directory field in the password file if that's not found.
*/
if ((mypath = getenv("HOME")) == (char *)0) {
** the home directory field in the password file if that's not found.
*/
if ((mypath = getenv("HOME")) == (char *)0) {
- if ((pw = getpwuid(getuid())) == (struct passwd *)0 || *pw->pw_dir == '\0')
+ if ((pw = getpwuid(getuid())) == (struct passwd *)0 ||
+ *pw->pw_dir == '\0')
adios(NULL, "cannot determine your home directory");
else
mypath = pw->pw_dir;
adios(NULL, "cannot determine your home directory");
else
mypath = pw->pw_dir;
@@
-89,7
+90,8
@@
context_read(void)
*/
if ((cp = context_find("path")) == (char *)0)
*/
if ((cp = context_find("path")) == (char *)0)
- adios(NULL, "Your %s file does not contain a path entry.", defpath);
+ adios(NULL, "Your %s file does not contain a path entry.",
+ defpath);
if (*cp == '\0')
adios(NULL, "Your `%s' profile file does not contain a valid path entry.", defpath);
if (*cp == '\0')
adios(NULL, "Your `%s' profile file does not contain a valid path entry.", defpath);
@@
-104,7
+106,8
@@
context_read(void)
adios(nd, "error opening");
cp = concat("Your MH-directory \"", nd, "\" doesn't exist; Create it? ", NULL);
if (!getanswer(cp))
adios(nd, "error opening");
cp = concat("Your MH-directory \"", nd, "\" doesn't exist; Create it? ", NULL);
if (!getanswer(cp))
- adios(NULL, "unable to access MH-directory \"%s\"", nd);
+ adios(NULL, "unable to access MH-directory \"%s\"",
+ nd);
free(cp);
if (!makedir(nd))
adios(NULL, "unable to create %s", nd);
free(cp);
if (!makedir(nd))
adios(NULL, "unable to create %s", nd);