aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--etc.c6
-rw-r--r--indep.c10
-rw-r--r--local.c4
-rw-r--r--rc.c4
4 files changed, 12 insertions, 12 deletions
diff --git a/etc.c b/etc.c
index 52366c0..e7606aa 100644
--- a/etc.c
+++ b/etc.c
@@ -1,4 +1,4 @@
-/* $Id: etc.c,v 1.51 2003/01/17 17:06:00 ukai Exp $ */
+/* $Id: etc.c,v 1.52 2003/01/17 17:06:57 ukai Exp $ */
#include "fm.h"
#include <pwd.h>
#include "myctype.h"
@@ -1444,11 +1444,11 @@ expandName(char *name)
char *q;
p += 2;
q = strchr(p, '/');
- if (q) { /* /~user/dir... */
+ if (q) { /* /~user/dir... */
passent = getpwnam(allocStr(p, q - p));
p = q;
}
- else { /* /~user */
+ else { /* /~user */
passent = getpwnam(p);
p = "";
}
diff --git a/indep.c b/indep.c
index 589ae73..9e1f0de 100644
--- a/indep.c
+++ b/indep.c
@@ -1,4 +1,4 @@
-/* $Id: indep.c,v 1.29 2003/01/17 17:06:02 ukai Exp $ */
+/* $Id: indep.c,v 1.30 2003/01/17 17:07:00 ukai Exp $ */
#include "fm.h"
#include <stdio.h>
#include <pwd.h>
@@ -188,12 +188,12 @@ expandPath(char *name)
p++;
if (IS_ALPHA(*p)) {
char *q = strchr(p, '/');
- if (q) { /* ~user/dir... */
- passent = getpwnam(allocStr(p, q - p));
+ if (q) { /* ~user/dir... */
+ passent = getpwnam(allocStr(p, q - p));
p = q;
}
- else { /* ~user */
- passent = getpwnam(p);
+ else { /* ~user */
+ passent = getpwnam(p);
p = "";
}
if (!passent)
diff --git a/local.c b/local.c
index ebd59eb..5face93 100644
--- a/local.c
+++ b/local.c
@@ -1,4 +1,4 @@
-/* $Id: local.c,v 1.23 2003/01/17 17:06:03 ukai Exp $ */
+/* $Id: local.c,v 1.24 2003/01/17 17:07:00 ukai Exp $ */
#include "fm.h"
#include <string.h>
#include <stdio.h>
@@ -300,7 +300,7 @@ checkPath(char *fn, char *path)
Str tmp;
struct stat st;
while (*path) {
- p = strchr(path, ':');
+ p = strchr(path, ':');
tmp = Strnew_charp(expandPath(p ? allocStr(path, p - path) : path));
if (Strlastchar(tmp) != '/')
Strcat_char(tmp, '/');
diff --git a/rc.c b/rc.c
index cdb68ff..8055c26 100644
--- a/rc.c
+++ b/rc.c
@@ -1,4 +1,4 @@
-/* $Id: rc.c,v 1.77 2003/01/17 17:06:05 ukai Exp $ */
+/* $Id: rc.c,v 1.78 2003/01/17 17:07:02 ukai Exp $ */
/*
* Initialization file etc.
*/
@@ -1580,7 +1580,7 @@ rcFile(char *base)
(base[0] == '.'
&& (base[1] == '/' || (base[1] == '.' && base[2] == '/')))
|| (base[0] == '~' && base[1] == '/')))
- /* /file, ./file, ../file, ~/file */
+ /* /file, ./file, ../file, ~/file */
return expandPath(base);
return expandPath(Strnew_m_charp(rc_dir, "/", base, NULL)->ptr);
}