Skip to content

Commit

Permalink
mxqsub: Move getumask() to mxqsub.c
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Jul 27, 2015
1 parent 4c440e7 commit 917ad20
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 0 additions & 7 deletions mxq_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@
#include "mxq_util.h"


mode_t getumask(void)
{
mode_t mask = umask( 0 );
umask(mask);
return mask;
}

char *mxq_hostname(void)
{
static char hostname[1024] = "";
Expand Down
8 changes: 8 additions & 0 deletions mxqsub.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,14 @@ static void print_usage(void)
);
}

mode_t getumask(void)
{
mode_t mask = umask( 0 );
umask(mask);
return mask;
}


static int load_group_id(struct mx_mysql *mysql, struct mxq_group *g)
{
struct mx_mysql_stmt *stmt = NULL;
Expand Down

0 comments on commit 917ad20

Please sign in to comment.