Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jul 2001 17:45:29 -0700 (PDT)
From:      Ian Dowse <iedowse@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sbin/umount umount.c
Message-ID:  <200107220045.f6M0jTA33040@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
iedowse     2001/07/21 17:45:29 PDT

  Modified files:
    sbin/umount          umount.c 
  Log:
  Include the remote hostname in RPC-related warning messages. Exit
  immediately if a host specified by the -h flag cannot be parsed
  instead of attempting to unmount all NFS filesystems, which was
  bad.
  
  Add a missing return statement at the end of checkname(); this
  could result in a non-zero exit status in some cases even if the
  unmount succeeded.
  
  Group two separate NFS-related operations into one block to make
  it more obvious that a variable (hostp) is not dereferenced when
  uninitialised. Initialise it to NULL anyway to avoid a warning.
  
  Pass in the read_mtab()'s bogus argument as NULL instead of messing
  with a local variable to achieve the same effect. A later commit
  will clean up this mounttab interface.
  
  Revision  Changes    Path
  1.26      +25 -26    src/sbin/umount/umount.c


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107220045.f6M0jTA33040>