@@ -220,7 +220,7 @@ static int parseLine(char * const line, ConfigBlock **cur_block,
220
220
else
221
221
free (logdir );
222
222
new_output -> fp = NULL ;
223
- new_output -> perms = (* cur_block )-> perms ;
223
+ new_output -> perms = (* cur_block )-> perms ;
224
224
new_output -> size = (off_t ) 0 ;
225
225
new_output -> maxsize = (* cur_block )-> maxsize ;
226
226
new_output -> maxfiles = (* cur_block )-> maxfiles ;
@@ -359,7 +359,7 @@ static int configParser(const char * const file)
359
359
(off_t ) DEFAULT_MAXSIZE , /* maxsize */
360
360
DEFAULT_MAXFILES , /* maxfiles */
361
361
(time_t ) DEFAULT_MAXTIME , /* maxtime */
362
- (mode_t ) DEFAULT_PERMS , /* perms */
362
+ (mode_t ) DEFAULT_PERMS , /* perms */
363
363
NULL , /* output */
364
364
NULL , /* command */
365
365
NULL , /* program */
@@ -1647,17 +1647,17 @@ static void dodaemonize(void)
1647
1647
1648
1648
static void setgroup (void )
1649
1649
{
1650
- if (group_name == NULL ) return ;
1651
- struct group * g ;
1652
- errno = 0 ;
1653
- if ((g = getgrnam (group_name )) == NULL ) {
1654
- if (errno == 0 )
1655
- err ("Failed to set group: group '%s' not found" , group_name );
1656
- else
1657
- errp ("Failed to set group" );
1658
- }
1659
- if (setgid (g -> gr_gid ) == -1 )
1660
- errp ("Failed to set group" );
1650
+ if (group_name == NULL ) return ;
1651
+ struct group * g ;
1652
+ errno = 0 ;
1653
+ if ((g = getgrnam (group_name )) == NULL ) {
1654
+ if (errno == 0 )
1655
+ err ("Failed to set group: group '%s' not found" , group_name );
1656
+ else
1657
+ errp ("Failed to set group" );
1658
+ }
1659
+ if (setgid (g -> gr_gid ) == -1 )
1660
+ errp ("Failed to set group" );
1661
1661
}
1662
1662
1663
1663
__attribute__ ((noreturn ))
@@ -1700,9 +1700,9 @@ static void parseOptions(int argc, char *argv[])
1700
1700
case 'C' :
1701
1701
config_file = xstrdup (optarg );
1702
1702
break ;
1703
- case 'g' :
1704
- group_name = xstrdup (optarg );
1705
- break ;
1703
+ case 'g' :
1704
+ group_name = xstrdup (optarg );
1705
+ break ;
1706
1706
case 'v' :
1707
1707
++ verbose ;
1708
1708
break ;
0 commit comments