1 /* 2 * h_site_umask.c 3 * 4 * (C)1998-2011 by Marc Huber <Marc.Huber@web.de> 5 * All rights reserved. 6 * 7 * $Id: h_site_umask.c,v 1.10 2015/03/14 06:11:26 marc Exp marc $ 8 * 9 */ 10 11 #include "headers.h" 12 13 static const char rcsid[] __attribute__ ((used)) = "$Id: h_site_umask.c,v 1.10 2015/03/14 06:11:26 marc Exp marc $"; 14 h_site_umask(struct context * ctx,char * arg)15void h_site_umask(struct context *ctx, char *arg) 16 { 17 DebugIn(DEBUG_COMMAND); 18 19 if (arg && (1 == sscanf(arg, "%o", &ctx->umask))) 20 ctx->umask_set = 1; 21 22 replyf(ctx, MSG_200_umask, ctx->umask); 23 24 DebugOut(DEBUG_COMMAND); 25 } 26