|
@@ -63,8 +63,7 @@ char *start(const char *name, const char *output, int width, int height, int upd
|
|
|
output_name = output;
|
|
|
/* check write permission */
|
|
|
dir_name = G_store(output_name);
|
|
|
- dirname(dir_name);
|
|
|
- if (access(dir_name, W_OK) != 0)
|
|
|
+ if (access(dirname(dir_name), W_OK) != 0)
|
|
|
G_fatal_error(_("Unable to start monitor, don't have "
|
|
|
"write permission for <%s>"), output_name);
|
|
|
G_free(dir_name);
|