#908 Fix typo in deleted mount check
Merged 5 years ago by mikem. Opened 6 years ago by mikem.
mikem/koji deleted_mount_typo  into  master

file modified
+2 -2
@@ -42,8 +42,8 @@ 

      for line in fo.readlines():

          path = line.split()[1]

          if path.startswith(topdir):

-             if path.endswith('\040(deleted)'):

-                 path = path[:-10]

+             if path.endswith(r'\040(deleted)'):

+                 path = path[:-13]

                  logger.warning('Found deleted mountpoint: %s' % path)

              mplist.append(path)

      fo.close()

@@ -21,7 +21,7 @@ 

          'proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0\n'

          'devtmpfs /dev devtmpfs rw,seclabel,nosuid,size=238836k,nr_inodes=59709,mode=755 0 0\n'

          'securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0\n'

-         'tmpfs /dev/shm\040(deleted) tmpfs rw,seclabel,nosuid,nodev 0 0\n'

+         'tmpfs /dev/shm\\040(deleted) tmpfs rw,seclabel,nosuid,nodev 0 0\n'

          'devpts /dev/pts devpts rw,seclabel,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0\n'

          'tmpfs /run tmpfs rw,seclabel,nosuid,nodev,mode=755 0 0\n'

          'tmpfs /sys/fs/cgroup tmpfs ro,seclabel,nosuid,nodev,noexec,mode=755 0 0\n'

This is a follow up to PR #402
Fixes #387

Also fixes the unit test

Commit 22cab96 fixes this pull-request

Pull-Request has been merged by mikem

5 years ago