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)
Oct 18 2024, 3:41 PM
Unknown Object (File)
Oct 1 2024, 2:54 PM
Unknown Object (File)
Sep 24 2024, 5:41 AM
Unknown Object (File)
Sep 8 2024, 1:57 AM
Unknown Object (File)
Sep 7 2024, 12:16 PM
Unknown Object (File)
Aug 19 2024, 4:01 PM
Unknown Object (File)
Aug 19 2024, 4:00 PM
Unknown Object (File)
Aug 19 2024, 1:06 PM
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