# HG changeset patch # User Colin Clark # Date 1516207368 0 # Node ID fe3d652a8b5b10038b88e323e680cf2c03c8ce16 # Parent c8b8f40f0dd06584468eed601811a37fe2e60fc7 Fix #578: unable to write orientation to file https://github.com/BestImageViewer/geeqie/issues/578 Path/filename was not protected with quotes diff -r c8b8f40f0dd0 -r fe3d652a8b5b src/layout_util.c --- a/src/layout_util.c Fri Jan 05 19:07:48 2018 +0000 +++ b/src/layout_util.c Wed Jan 17 16:42:48 2018 +0000 @@ -510,8 +510,7 @@ rotation = g_strdup_printf("%d", fd_n->user_orientation); command = g_strconcat(GQ_BIN_DIR, "/geeqie-rotate -r ", rotation, - keep_date ? " -t " : " ", fd_n->path, NULL); - + keep_date ? " -t \"" : " \"", fd_n->path, "\"", NULL); run_result = WEXITSTATUS(runcmd(command)); if (!run_result) {