diff options
Diffstat (limited to 'share/shares.c')
-rw-r--r-- | share/shares.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/share/shares.c b/share/shares.c index 2e39d56..e5b16d4 100644 --- a/share/shares.c +++ b/share/shares.c @@ -1,9 +1,14 @@ +#ifdef HAVE_CONFIG_H #include <config.h> +#endif + +#include <glib/gi18n-lib.h> + #include <string.h> #include <time.h> #include <sys/types.h> #include <sys/wait.h> -#include <glib/gi18n-lib.h> + #include "shares.h" #undef DEBUG_SHARES @@ -25,8 +30,6 @@ static time_t refresh_timestamp; #define KEY_COMMENT "comment" #define KEY_ACL "usershare_acl" #define KEY_GUEST_OK "guest_ok" -#define GROUP_ALLOW_GUESTS "global" -#define KEY_ALLOW_GUESTS "usershare allow guests" /* Debugging flags */ static gboolean throw_error_on_refresh; @@ -215,7 +218,6 @@ net_usershare_run (int argc, char **argv, GKeyFile **ret_key_file, GError **erro return retval; } - /* Internals */ static void @@ -620,7 +622,7 @@ add_share (ShareInfo *info, GError **error) return FALSE; argv[0] = "add"; - argv[1] = "-l"; + argv[1] = "--long"; argv[2] = info->share_name; argv[3] = info->path; argv[4] = info->comment; @@ -753,7 +755,6 @@ modify_share (const char *old_path, ShareInfo *info, GError **error) return add_share (info, error); } - /* Public API */ GQuark |