Page MenuHomeFreeBSD

Fix regression with /i caused by r303047
ClosedPublic

Authored by ngie on Jul 30 2016, 6:14 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 29, 12:15 PM
Unknown Object (File)
Jan 14 2024, 6:08 PM
Unknown Object (File)
Dec 20 2023, 12:25 AM
Unknown Object (File)
Dec 19 2023, 1:02 AM
Unknown Object (File)
Oct 19 2023, 10:57 PM
Unknown Object (File)
Oct 12 2023, 8:00 AM
Unknown Object (File)
Sep 30 2023, 7:25 PM
Unknown Object (File)
Sep 3 2023, 4:01 AM
Subscribers

Details

Reviewers
ngie
Summary

Fix regression with /i caused by r303047

'\n' was specifically added to -e arguments prior to r303047; restore
historical behavior, which fixes /i as shown in the testing section,
and fixes usr.sbin/etcupdate/preworld_test:main [*]

PR: 195929, 211399 [*]
MFC after: (1 month from 07/19/2016)
X-MFC with: r303047
Reported by: Jenkins
Sponsored by: EMC / Isilon Storage Division

Test Plan
  • Base case:

% echo "www:*:80:80:World Wide Web Owner:/nonexistent:/usr/sbin/nologin" | sed -e '/:80:/i\
auditdistd:*:78:77::0:0:Auditdistd unprivileged user:/var/empty:/usr/sbin/nologin'
auditdistd:*:78:77::0:0:Auditdistd unprivileged user:/var/empty:/usr/sbin/nologin
www:*:80:80:World Wide Web Owner:/nonexistent:/usr/sbin/nologin
%

  • etcupdate testcase:

% sudo kyua test preworld_test
preworld_test:main -> passed [0.171s]

Results file id is usr_tests_usr.sbin_etcupdate.20160730-061144-858882
Results saved to /root/.kyua/store/results.usr_tests_usr.sbin_etcupdate.20160730-061144-858882.db

1/1 passed (0 failed)
%

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 4661
Build 4715: arc lint + arc unit

Event Timeline

ngie retitled this revision from to Fix regression with /i caused by r303047.
ngie updated this object.
ngie edited the test plan for this revision. (Show Details)
ngie added a subscriber: pfg.
This revision is now accepted and ready to land.Jul 31 2016, 6:42 AM