Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-10-19 15:41:31 +0400
committerChristopher Faylor <me@cgf.cx>2002-10-19 15:41:31 +0400
commit7c518815315e6e7d8943314e42982a829bb3fb09 (patch)
tree1554e634fd0cb41a2047c39111b930753b26ff7e
parenta85860b5c868d7c3865e5d912916e51a55014ac7 (diff)
* mount.cc (usage): Correctly report default mode.
-rw-r--r--winsup/utils/ChangeLog4
-rw-r--r--winsup/utils/mount.cc4
-rw-r--r--winsup/utils/strace.cc4
3 files changed, 8 insertions, 4 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog
index 666f57546..56a5cf26e 100644
--- a/winsup/utils/ChangeLog
+++ b/winsup/utils/ChangeLog
@@ -1,3 +1,7 @@
+2002-10-19 Christopher Faylor <cgf@redhat.com>
+
+ * mount.cc (usage): Correctly report default mode.
+
2002-09-29 Christopher Faylor <cgf@redhat.com>
* cygpath.cc (close_arg): Remove unused static.
diff --git a/winsup/utils/mount.cc b/winsup/utils/mount.cc
index 038df0bd0..d4852e50f 100644
--- a/winsup/utils/mount.cc
+++ b/winsup/utils/mount.cc
@@ -134,7 +134,7 @@ static void
usage (FILE *where = stderr)
{
fprintf (where, "Usage: %s [OPTION] [<win32path> <posixpath>]\n\
- -b, --binary text files are equivalent to binary files\n\
+ -b, --binary (default) text files are equivalent to binary files\n\
(newline = \\n)\n\
-c, --change-cygdrive-prefix change the cygdrive path prefix to <posixpath>\n\
-f, --force force mount, don't warn about missing mount\n\
@@ -144,7 +144,7 @@ usage (FILE *where = stderr)
system mount points and cygdrive prefixes\n\
-p, --show-cygdrive-prefix show user and/or system cygdrive path prefix\n\
-s, --system (default) add system-wide mount point\n\
- -t, --text (default) text files get \\r\\n line endings\n\
+ -t, --text text files get \\r\\n line endings\n\
-u, --user add user-only mount point\n\
-v, --version output version information and exit\n\
-x, --executable treat all files under mount point as executables\n\
diff --git a/winsup/utils/strace.cc b/winsup/utils/strace.cc
index 79187cdbc..26ffa4737 100644
--- a/winsup/utils/strace.cc
+++ b/winsup/utils/strace.cc
@@ -944,10 +944,10 @@ character #%d.\n", optarg, (int) (endptr - optarg), endptr);
#endif
break;
case 'p':
- pid = strtol (optarg, NULL, 10);
+ pid = strtoul (optarg, NULL, 10);
break;
case 'S':
- flush_period = strtol (optarg, NULL, 10);
+ flush_period = strtoul (optarg, NULL, 10);
break;
case 't':
hhmmss ^= 1;