[Ctool-users] Parsing error
Brought to you by:
flisakow
From: Emil O. <em...@ee...> - 2002-05-02 16:47:46
|
Hi, I'm having trouble parsing a few files in sudo-1.6.5p2 (though I'm having similar problems in other packages). The ctool parser doesn't seem to like files produced by bison/flex (who would? ;). In sudo, the offending files are lex.yy.c and sudo.tab.c. Then there's the file set_perms.c which has a really strange error. I extracted the problematic preprocessed code: static void runas_setup() { if ((sudo_user._runas_pw) ->pw_name != ((void *)0) ) { # 314 "set_perms.c" { if (setgid((sudo_user._runas_pw) ->pw_gid)) perror("cannot set gid to runas gid"); if (! (sudo_defs_table[( 34 )].sd_un.flag) && initgroups(* (sudo_user.runas) , (sudo_user._runas_pw) ->pw_gid) < 0) perror("cannot set group vector"); } } } set_perms.c:312: Error (parse error) before '#line' # 313 "set_perms.c" ^ set_perms.c:327: Error (parse error) before 'String Constant' } The first error is really strange to me considering that the line mentioned is not in the file! Any ideas on where this is coming from? Thanks, Emil |