fstab parsing ignores comment lines

This commit is contained in:
cebix 2001-07-31 14:10:35 +00:00
parent 52ad76b49e
commit 52e18c5874

View File

@ -146,7 +146,7 @@ void SysAddDiskPrefs(void)
while(fgets(line, 255, f)) {
// Read line
int len = strlen(line);
if (len == 0)
if (len == 0 || line[0] == '#')
continue;
line[len-1] = 0;