summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2001-01-14 00:11:29 +0000
committerRichard Sharpe <sharpe@samba.org>2001-01-14 00:11:29 +0000
commit552d6bce08fdf98c50c3dbc7b873a49bd72baac5 (patch)
treee7280a572273f6070db1503ef172b52d34c11606 /source3/client
parent93261949f5f1f96c513d4651117ee0c462a46e63 (diff)
downloadsamba-552d6bce08fdf98c50c3dbc7b873a49bd72baac5.tar.gz
samba-552d6bce08fdf98c50c3dbc7b873a49bd72baac5.tar.bz2
samba-552d6bce08fdf98c50c3dbc7b873a49bd72baac5.zip
Fixed bugs relating to Win2K and the need for a codepage so that unicode
strings can be handled correctly. (This used to be commit 5629b097d4f04ad45c66f270bd58f08d7c717353)
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/tree.c42
1 files changed, 25 insertions, 17 deletions
diff --git a/source3/client/tree.c b/source3/client/tree.c
index 872ec0f1ab..eb95511934 100644
--- a/source3/client/tree.c
+++ b/source3/client/tree.c
@@ -348,28 +348,36 @@ static void cb_select_child (GtkWidget *root_tree, GtkWidget *child,
if (smbc_stat(path1, &st1) < 0) {
- g_print("cb_select_child: Could not stat file %s, %s\n", path1,
- strerror(errno));
+ if (errno != EBUSY) {
+
+ g_print("cb_select_child: Could not stat file %s, %s\n", path1,
+ strerror(errno));
- gtk_main_quit();
+ gtk_main_quit();
- return;
+ return;
- }
-
- /* Now format each of the relevant things ... */
+ }
+ else {
- snprintf(col2, sizeof(col2), "%s%s%s%s%s%s(%0X)",
- (st1.st_mode&0x20?"A":""),
- (st1.st_mode&0x10?"D":""),
- (st1.st_mode&0x08?"V":""),
- (st1.st_mode&0x04?"S":""),
- (st1.st_mode&0x02?"H":""),
- (st1.st_mode&0x01?"R":""),
- st1.st_mode);
- snprintf(col3, sizeof(col3), "%u", st1.st_size);
- snprintf(col4, sizeof(col4), "%s", ctime(&st1.st_ctime));
+ strncpy(col2, "Device or resource busy", sizeof(col2));
+ }
+ }
+ else {
+ /* Now format each of the relevant things ... */
+
+ snprintf(col2, sizeof(col2), "%s%s%s%s%s%s(%0X)",
+ (st1.st_mode&0x20?"A":""),
+ (st1.st_mode&0x10?"D":""),
+ (st1.st_mode&0x08?"V":""),
+ (st1.st_mode&0x04?"S":""),
+ (st1.st_mode&0x02?"H":""),
+ (st1.st_mode&0x01?"R":""),
+ st1.st_mode);
+ snprintf(col3, sizeof(col3), "%u", st1.st_size);
+ snprintf(col4, sizeof(col4), "%s", ctime(&st1.st_ctime));
+ }
}
break;