mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Exceptionally hacky linux fix. gnu gencat is returning != 0 even when it's
succeeding.
This commit is contained in:
parent
1e3b674118
commit
cc949fccd2
1 changed files with 13 additions and 0 deletions
|
@ -247,7 +247,13 @@ void cat_open ()
|
|||
sprintf(line,"/usr/bin/gencat ./.dt_pfile.cat %s",pfile);
|
||||
#endif
|
||||
if ( system(line) != 0 )
|
||||
{
|
||||
/* Utter Linux HACK, it seems the return value of GNU gencat is != 0
|
||||
even on success */
|
||||
#if !defined(linux)
|
||||
fatal("primary .tmsg file would not gencat\n",0,9);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
catfile[0] = catopen("./.dt_pfile.cat",0);
|
||||
|
@ -260,7 +266,14 @@ void cat_open ()
|
|||
sprintf(line,"/usr/bin/gencat ./.dt_dfile.cat %s",dfile);
|
||||
#endif
|
||||
if ( system(line) != 0 )
|
||||
{
|
||||
/* Utter Linux HACK, it seems the return value of GNU gencat is != 0
|
||||
even on success */
|
||||
#if !defined(linux)
|
||||
fatal("default .tmsg file would not gencat\n",0,9);
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
catfile[1] = catopen("./.dt_dfile.cat",0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue