patch-src_umount_c 491 B

123456789101112
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- watchdog-5.2.4.orig.orig/src/umount.c 2003-01-28 07:47:38.000000000 +0100
  3. +++ watchdog-5.2.4.orig/src/umount.c 2008-10-16 13:00:07.000000000 +0200
  4. @@ -210,7 +210,7 @@ umount_one (const char *spec, const char
  5. if (res < 0)
  6. umnt_err2 = errno;
  7. /* Do not complain about remote NFS mount points */
  8. - if (errno == ENOENT && index(spec, ':'))
  9. + if (errno == ENOENT && strchr(spec, ':'))
  10. umnt_err2 = 0;
  11. }
  12. }