From: Philippe E. <ph...@us...> - 2002-05-23 02:21:55
|
Update of /cvsroot/oprofile/oprofile/dae In directory usw-pr-cvs1:/tmp/cvs-serv22790/dae Modified Files: oprofiled.c Log Message: option: client code is no longer required to specify explicitly what option<type> he want dae: minor bug fix, when backing-up samples dir do not warn when trying to move non regular file fail Phil Index: oprofiled.c =================================================================== RCS file: /cvsroot/oprofile/oprofile/dae/oprofiled.c,v retrieving revision 1.80 retrieving revision 1.81 diff -u -d -r1.80 -r1.81 --- oprofiled.c 22 May 2002 03:55:46 -0000 1.80 +++ oprofiled.c 23 May 2002 02:21:53 -0000 1.81 @@ -198,7 +198,7 @@ printf("Backing up samples file to directory %s\n", dir_name); while ((dirent = readdir(dir)) != 0) { - if (op_move_regular_file(dir_name, OP_SAMPLES_DIR, dirent->d_name)) { + if (op_move_regular_file(dir_name, OP_SAMPLES_DIR, dirent->d_name) < 0) { printf("unable to backup %s/%s to directory %s\n", OP_SAMPLES_DIR, dirent->d_name, dir_name); } |