aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2008-03-19 08:30:03 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2008-03-19 08:30:03 +0000
commit8cc88102841c4ee750398a82a93a796a883dd8e5 (patch)
tree6fdff1fe851ae5d5c35993b51f5095d77e60248b
parent7058b44969349cc7e32311228629c6bd8d221510 (diff)
win32: fixed absolute path was not handled correctly with --attach option.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1966 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog5
-rw-r--r--ChangeLog.ja5
-rw-r--r--src/main.c2
3 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 83151c05..5d80565e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-03-19
+
+ * src/main.c: parse_cmd_opt(): win32: fixed absolute path was not
+ handled correctly.
+
2008-03-13
* src/addr_compl.c: get_completion_address(): added characters to be
diff --git a/ChangeLog.ja b/ChangeLog.ja
index d90d9bd1..1edee531 100644
--- a/ChangeLog.ja
+++ b/ChangeLog.ja
@@ -1,3 +1,8 @@
+2008-03-19
+
+ * src/main.c: parse_cmd_opt(): win32: 絶対パスが正しく扱われて
+ いなかったバグを修正。
+
2008-03-13
* src/addr_compl.c: get_completion_address(): 引用すべき文字を追加。
diff --git a/src/main.c b/src/main.c
index c0c35350..a5cc215b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -434,7 +434,7 @@ static void parse_cmd_opt(int argc, char *argv[])
while (p && *p != '\0' && *p != '-') {
if (!cmd.attach_files)
cmd.attach_files = g_ptr_array_new();
- if (*p != G_DIR_SEPARATOR)
+ if (!g_path_is_absolute(p))
file = g_strconcat(get_startup_dir(),
G_DIR_SEPARATOR_S,
p, NULL);