From: <tak...@us...> - 2012-05-18 02:52:37
|
Revision: 6315 http://gfarm.svn.sourceforge.net/gfarm/?rev=6315&view=rev Author: takuya-i Date: 2012-05-18 02:52:31 +0000 (Fri, 18 May 2012) Log Message: ----------- * shut up ENOENT messages in gfpcopy -f Modified Paths: -------------- gfarm_v2/trunk/gftool/gfprep/gfarm_dirtree.c Modified: gfarm_v2/trunk/gftool/gfprep/gfarm_dirtree.c =================================================================== --- gfarm_v2/trunk/gftool/gfprep/gfarm_dirtree.c 2012-05-15 19:08:43 UTC (rev 6314) +++ gfarm_v2/trunk/gftool/gfprep/gfarm_dirtree.c 2012-05-18 02:52:31 UTC (rev 6315) @@ -255,8 +255,9 @@ retv = lstat(path, stp); if (retv == -1) { save_errno = errno; - fprintf(stderr, "ERROR: lstat(%s): %s\n", - path, strerror(save_errno)); + if (save_errno != ENOENT) + fprintf(stderr, "ERROR: lstat(%s): %s\n", + path, strerror(save_errno)); return (gfarm_errno_to_error(save_errno)); } return (GFARM_ERR_NO_ERROR); @@ -334,8 +335,9 @@ e = gfs_lstat(path, &st); if (e != GFARM_ERR_NO_ERROR) { - fprintf(stderr, "ERROR: gfs_lstat(%s): %s\n", - path, gfarm_error_string(e)); + if (e != GFARM_ERR_NO_SUCH_FILE_OR_DIRECTORY) + fprintf(stderr, "ERROR: gfs_lstat(%s): %s\n", + path, gfarm_error_string(e)); return (e); } dirtree_convert_stat(&st, stp); @@ -592,9 +594,6 @@ is_retry = 1; goto finfo_retry2; } - if (e != GFARM_ERR_NO_SUCH_FILE_OR_DIRECTORY) - fprintf(stderr, "ERROR: lstat(%s): %s\n", - dst_path, gfarm_error_string(e)); /* dst does not exist */ gfpara_send_int(to_parent, 0); /* 3: dst_exist */ free(subpath); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |