Hello again all,

     After running a few checks it appears that the -m and the non-m
functions were doing the same exact thing in lib/tst_res.c (at least
in the April and May snapshots of ltp-full). This patch fixes the
behavior so tst_resm and tst_res no longer do the same thing (output
to stdout only), but instead (like the manpage says and the original
intention was):

tst_resm:
     - Output in deterministic way, depending on input parameters provided.

tst_res
     - Do same thing as tst_resm, but output to file specified (and
stdout), or just stdout if file == NULL.

     I also added a sidenote to cat_file as well, considering that
someone (unlikely, but you never know us black-hat folks ;)...) might
pass in a /dev node instead of a typical regular file, and as such
there might need to be another check provided to cat_file or tst_print
*shrugs*...

     Questions and comments are welcome as always.

-Garrett

Attachment: tst_res_fix.patch
Description: Binary data

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to