Projects
home:pandora:RobinOS23
patch
_service:download_src_package:patch-2.7.6-allow...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:patch-2.7.6-allow-input-files-to-be-missing-for-ed-style-patches.patch of Package patch
commit b5a91a01e5d0897facdd0f49d64b76b0f02b43e1 Author: Andreas Gruenbacher <agruen@gnu.org> Date: Fri Apr 6 11:34:51 2018 +0200 Allow input files to be missing for ed-style patches * src/pch.c (do_ed_script): Allow input files to be missing so that new files will be created as with non-ed-style patches. diff --git a/src/pch.c b/src/pch.c index bc6278c..0c5cc26 100644 --- a/src/pch.c +++ b/src/pch.c @@ -2394,9 +2394,11 @@ do_ed_script (char const *inname, char const *outname, if (! dry_run && ! skip_rest_of_patch) { int exclusive = *outname_needs_removal ? 0 : O_EXCL; - assert (! inerrno); - *outname_needs_removal = true; - copy_file (inname, outname, 0, exclusive, instat.st_mode, true); + if (inerrno != ENOENT) + { + *outname_needs_removal = true; + copy_file (inname, outname, 0, exclusive, instat.st_mode, true); + } sprintf (buf, "%s %s%s", editor_program, verbosity == VERBOSE ? "" : "- ", outname);
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2