(find_mount_point): Use save_cwd/restore_cwd.
authorJim Meyering <jim@meyering.net>
Thu, 28 Nov 1996 19:35:33 +0000 (19:35 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 28 Nov 1996 19:35:33 +0000 (19:35 +0000)
commitac66871c659f2c6e599a6acab60c2a4b63e2bce5
tree2d658d73576e046a0a3b1c60f110bc0ece50edcc
parent3fa102417ec69c30a2abe2b8c93e82ce43e5ce15
(find_mount_point): Use save_cwd/restore_cwd.
"save-cwd.h": New include.

(show_dev): Deal with null values for DISK and FSTYPE,
including interpreting special 0 errno return from get_fs_usage.
(show_point): Don't fail if we can't find a mount entry for POINT,
just call show_dev with 0 values and let it fail if necessary.
(main): Require a non-zero MOUNT_LIST only if showing all filesystems.
(find_mount_point): New function.
(xgetcwd): New declaration.

All from Miles.
src/df.c