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:
authorCorinna Vinschen <corinna@vinschen.de>2008-03-12 15:47:09 +0300
committerCorinna Vinschen <corinna@vinschen.de>2008-03-12 15:47:09 +0300
commit2b2b42cf59bafffa3cd3021090c8e8636985fd48 (patch)
tree23c46e03e638a625c464bc7ccbb31ff795c71257 /winsup/utils/mkpasswd.c
parentedab6053a24d49f3443fbfdbac2c330caf50b030 (diff)
* cygpath.cc (do_sysfolders): Use cygwin_conv_path.
(do_pathconv): Use cygwin_conv_path and cygwin_conv_path_list. * dumper.cc (main): Use cygwin_conv_path. Allocate target path dynamically. * mkpasswd.c (current_user): Use cygwin_conv_path. (enum_users): Ditto. * ps.cc (NT_MAX_PATH): Define. (main): Use cygwin_conv_path. * regtool.cc (find_key): Ditto. Allocate target path dynamically. (cmd_save): Ditto.
Diffstat (limited to 'winsup/utils/mkpasswd.c')
-rw-r--r--winsup/utils/mkpasswd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/winsup/utils/mkpasswd.c b/winsup/utils/mkpasswd.c
index 63cfa27b8..f51bb659b 100644
--- a/winsup/utils/mkpasswd.c
+++ b/winsup/utils/mkpasswd.c
@@ -197,7 +197,8 @@ current_user (int print_sids, int print_cygpath,
strlcat (homedir_w32, "\\", sizeof (homedir_w32));
strlcat (homedir_w32, envhomepath, sizeof (homedir_w32));
if (print_cygpath)
- cygwin_conv_to_posix_path (homedir_w32, homedir_psx);
+ cygwin_conv_path (CCP_WIN_A_TO_POSIX | CCP_ABSOLUTE, homedir_w32,
+ homedir_psx, MAX_PATH);
else
psx_dir (homedir_w32, homedir_psx);
}
@@ -298,7 +299,8 @@ enum_users (LPWSTR servername, int print_sids, int print_cygpath,
if (homedir_w32[0] != '\0')
{
if (print_cygpath)
- cygwin_conv_to_posix_path (homedir_w32, homedir_psx);
+ cygwin_conv_path (CCP_WIN_A_TO_POSIX | CCP_ABSOLUTE,
+ homedir_w32, homedir_psx, MAX_PATH);
else
psx_dir (homedir_w32, homedir_psx);
}