]> git.pld-linux.org Git - packages/eject.git/blob - eject-ignorecomments.patch
- ignore commneted (hashed) lines in /etc/fstab (patch from rawhide).
[packages/eject.git] / eject-ignorecomments.patch
1 --- eject-2.0.4/eject.c.orig    Wed May  2 01:52:53 2001
2 +++ eject-2.0.4/eject.c Wed May  2 01:54:07 2001
3 @@ -536,6 +536,8 @@
4    }
5  
6    while (fgets(line, sizeof(line), fp) != 0) {
7 +    if (line && line[0] == '#')
8 +      continue;
9      rc = sscanf(line, "%1023s %1023s", s1, s2);
10      if (rc >= 2 && ((strcmp(s1, name) == 0) || (strcmp(s2, name) == 0))) {
11        fclose(fp);
This page took 0.108906 seconds and 4 git commands to generate.