diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-08 04:29:58 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-08 04:29:58 +0000 |
commit | 4646c2987eba0ba70050daf3c9fb450510a30237 (patch) | |
tree | b1312f8c64fd61a3097b553507d00cac44b3c4bd /main.cc | |
parent | Adding debian version 1.1-1. (diff) | |
download | zutils-4646c2987eba0ba70050daf3c9fb450510a30237.tar.xz zutils-4646c2987eba0ba70050daf3c9fb450510a30237.zip |
Merging upstream version 1.2~pre2.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to '')
-rw-r--r-- | main.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -275,7 +275,7 @@ int main( const int argc, const char * const argv[] ) for( ; argind < parser.arguments(); ++argind ) { const int code = parser.code( argind ); - const char * arg = parser.argument( argind ).c_str(); + const char * const arg = parser.argument( argind ).c_str(); if( !code ) { if( program_mode == m_zgrep && !grep_pattern_found ) @@ -399,7 +399,7 @@ int main( const int argc, const char * const argv[] ) if( recursive ) { struct stat st; - if( !stat( input_filename.c_str(), &st ) && S_ISDIR( st.st_mode ) ) + if( stat( input_filename.c_str(), &st ) == 0 && S_ISDIR( st.st_mode ) ) { DIR * const dirp = opendir( input_filename.c_str() ); if( !dirp ) |