summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2012-02-07 17:34:29 +0000
committerCorinna Vinschen <corinna@vinschen.de>2012-02-07 17:34:29 +0000
commitb23ef0bc0aa1da5638b43f966fd4bd42f6160f81 (patch)
treeae1e9f22bc793b9228054b94923da8bb96668663
parent3b8698d7bed1bcc8d0473188003a8e57871b0fd4 (diff)
downloadcygnal-b23ef0bc0aa1da5638b43f966fd4bd42f6160f81.tar.gz
cygnal-b23ef0bc0aa1da5638b43f966fd4bd42f6160f81.tar.bz2
cygnal-b23ef0bc0aa1da5638b43f966fd4bd42f6160f81.zip
* mount.cc (mount_info::create_root_entry): Fix format specifier in
api_fatal message.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/mount.cc4
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 7b55f635e..4400154fc 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
2012-02-07 Corinna Vinschen <corinna@vinschen.de>
+ * mount.cc (mount_info::create_root_entry): Fix format specifier in
+ api_fatal message.
+
+2012-02-07 Corinna Vinschen <corinna@vinschen.de>
+
* include/process.h: Move here from include/cygwin subdir.
* exec.cc: Change include of process.h to reflect the fact that it's
now back in include.
diff --git a/winsup/cygwin/mount.cc b/winsup/cygwin/mount.cc
index 1bdd0a2e8..5724298b3 100644
--- a/winsup/cygwin/mount.cc
+++ b/winsup/cygwin/mount.cc
@@ -1,7 +1,7 @@
/* mount.cc: mount handling.
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
- 2006, 2007, 2008, 2009, 2010, 2011 Red Hat, Inc.
+ 2006, 2007, 2008, 2009, 2010, 2011, 2012 Red Hat, Inc.
This file is part of Cygwin.
@@ -450,7 +450,7 @@ mount_info::create_root_entry (const PWCHAR root)
if (add_item (native_root, "/",
MOUNT_SYSTEM | MOUNT_BINARY | MOUNT_IMMUTABLE | MOUNT_AUTOMATIC)
< 0)
- api_fatal ("add_item (\"%W\", \"/\", ...) failed, errno %d", native_root, errno);
+ api_fatal ("add_item (\"%s\", \"/\", ...) failed, errno %d", native_root, errno);
/* Create a default cygdrive entry. Note that this is a user entry.
This allows to override it with mount, unless the sysadmin created
a cygdrive entry in /etc/fstab. */