Index: apps/plugins/shortcuts/shortcuts_common.c =================================================================== --- apps/plugins/shortcuts/shortcuts_common.c (revision 14917) +++ apps/plugins/shortcuts/shortcuts_common.c (working copy) @@ -21,8 +21,6 @@ #include "shortcuts.h" MEM_FUNCTION_WRAPPERS(rb); -#define SHORTCUTS_FILENAME "/shortcuts.link" - #define PATH_DISP_SEPARATOR "\t" #define PATH_DISP_SEPARATOR_LEN 1 /* strlen(PATH_DISP_SEPARATOR) */ #define CONTROL_PREFIX "#" @@ -316,7 +314,7 @@ * entry to the file, but I'm going to * be lazy, and just re-write the whole * thing. */ - fd = rb->open(filename, O_WRONLY|O_TRUNC); + fd = rb->creat(filename); if (fd < 0) { rb->splash(HZ*2, "Could not open shortcuts file %s for writing", filename);