diff options
| author | gp87344 <none@none> | 2007-05-31 21:56:09 -0700 |
|---|---|---|
| committer | gp87344 <none@none> | 2007-05-31 21:56:09 -0700 |
| commit | 6f8113b7d197ff2d9ad07d9c95e3db69750b8829 (patch) | |
| tree | 5d651c509d60ad2b061ca9df0406e1a16ae947b2 /usr/src/uts/common/os/modsysfile.c | |
| parent | fba37afd99f13bc8fe48c08caa1438f82285f5a0 (diff) | |
| download | illumos-joyent-6f8113b7d197ff2d9ad07d9c95e3db69750b8829.tar.gz | |
6564339 moddir in /etc/system is broken
Diffstat (limited to 'usr/src/uts/common/os/modsysfile.c')
| -rw-r--r-- | usr/src/uts/common/os/modsysfile.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/src/uts/common/os/modsysfile.c b/usr/src/uts/common/os/modsysfile.c index 690491d8ba..07076f02dd 100644 --- a/usr/src/uts/common/os/modsysfile.c +++ b/usr/src/uts/common/os/modsysfile.c @@ -699,9 +699,11 @@ do_sysfile_cmd(struct _buf *file, const char *cmd) } *cp++ = (char)ch; } - *cp = ':'; - if (isnewline(ch)) + *cp++ = ':'; + if (isnewline(ch)) { + cp--; (void) kobj_ungetc(file); + } } (void) kobj_ungetc(file); *cp = '\0'; |
