version 1.66, 2006/11/19 16:51:19 |
version 1.67, 2007/05/28 17:52:17 |
|
|
static struct buffer *makelist(void); |
static struct buffer *makelist(void); |
static struct buffer *bnew(const char *); |
static struct buffer *bnew(const char *); |
|
|
|
/* Flag for global working dir */ |
|
extern int globalwd; |
|
|
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
togglereadonly(int f, int n) |
togglereadonly(int f, int n) |
|
|
if (plen == 0) |
if (plen == 0) |
return (FALSE); |
return (FALSE); |
|
|
if (curbp->b_cwd[0] != '\0') { |
if (globalwd == FALSE && curbp->b_cwd[0] != '\0') { |
(void)strlcpy(path, curbp->b_cwd, plen); |
(void)strlcpy(path, curbp->b_cwd, plen); |
} else { |
} else { |
if (getcwdir(cwd, sizeof(cwd)) == FALSE) |
if (getcwdir(cwd, sizeof(cwd)) == FALSE) |