Colin Walters
a195888b0f
lib/checkout: Fix regression in subpath for regular files
...
This is what caused the merge of
https://github.com/projectatomic/rpm-ostree/pull/652
to blow up, since https://github.com/ostreedev/ostree/pull/848
landed right before we tried to merge it.
When I was writing that PR I remember having an uncertain feeling
since we were doing a `mkdirat` above, but at the time I thought
we'd have test suite coverage...turns out we didn't.
For backwards compatibility, we need to continue to do a `mkdirat` here of the
parent. However...I can't think of a reason anyone would *want* that behavior.
Hence, let's add a special trick - if the destination name is `.`, we skip
`mkdirat()`. That way rpm-ostree for example can open a dfd for `/etc` and avoid
the `mkdir`.
Fold the subpath tests into `test-basic.sh` since it's not worth a separate
file. Add a test case for checking out a file.
Closes : #854
Approved by: jlebon
2017-05-12 14:00:20 +00:00
..
2017-03-30 19:19:54 +00:00
2015-03-19 12:43:04 -04:00
2016-03-03 08:50:19 -05:00
2017-05-09 15:08:26 +00:00
2017-04-27 13:43:49 +00:00
2017-01-19 13:54:59 +00:00
2017-03-24 22:16:43 +00:00
2017-05-12 14:00:20 +00:00
2016-04-04 14:19:35 +00:00
2017-05-10 15:10:30 +00:00
2017-03-30 19:19:54 +00:00
2017-01-19 13:54:59 +00:00
2016-07-28 10:10:17 +00:00
2015-05-28 14:21:30 -04:00
2017-03-24 22:16:43 +00:00
2016-06-07 15:58:37 +00:00
2017-05-08 17:36:33 +00:00
2017-05-08 18:34:10 +00:00
2016-04-04 14:19:35 +00:00
2016-06-09 21:10:35 +00:00
2016-02-26 08:19:01 -05:00
2016-02-26 08:19:01 -05:00
2017-04-12 21:30:33 +00:00
2017-05-11 18:17:26 +00:00
2016-03-03 08:50:19 -05:00
2016-11-22 02:32:33 +00:00
2016-03-03 08:50:19 -05:00
2016-03-03 08:50:19 -05:00
2016-08-27 13:11:22 +00:00
2016-11-01 18:00:37 +00:00
2016-03-03 08:50:19 -05:00
2016-08-27 13:11:22 +00:00
2016-08-27 13:11:22 +00:00
2016-11-01 18:00:37 +00:00
2016-03-31 14:22:06 +00:00
2016-03-03 08:50:19 -05:00
2017-02-27 20:57:23 +00:00
2016-03-03 08:50:19 -05:00
2016-03-03 08:50:19 -05:00
2017-03-24 22:16:43 +00:00
2016-06-27 20:20:21 +00:00
2016-11-30 18:51:26 +00:00
2017-04-25 13:52:35 +00:00
2017-03-27 13:48:41 +00:00
2017-01-19 13:54:59 +00:00
2016-03-03 08:50:19 -05:00
2016-12-05 15:20:56 +00:00
2016-09-09 19:06:11 +00:00
2017-03-24 22:16:43 +00:00
2017-05-08 16:35:09 +00:00
2017-05-09 14:05:46 +00:00
2017-04-12 21:30:33 +00:00
2017-03-24 22:16:43 +00:00
2016-04-19 12:28:06 +00:00
2016-08-31 16:52:12 +00:00
2017-05-05 15:10:51 +00:00
2016-01-27 11:44:10 -05:00
2016-12-06 14:50:08 +00:00
2016-12-05 15:20:56 +00:00
2017-02-22 18:57:18 +00:00
2017-03-24 22:16:43 +00:00
2017-03-24 22:16:43 +00:00
2016-12-05 15:20:56 +00:00
2016-12-05 15:20:56 +00:00
2017-03-24 22:16:43 +00:00
2016-12-05 15:20:56 +00:00
2016-12-05 15:20:56 +00:00
2016-12-05 15:20:56 +00:00
2017-03-24 22:16:43 +00:00
2017-03-24 22:16:43 +00:00
2016-03-31 18:54:13 +00:00
2017-01-19 10:47:15 +00:00
2017-03-24 22:16:43 +00:00
2017-03-24 22:16:43 +00:00
2017-03-24 22:16:43 +00:00
2017-03-24 22:16:43 +00:00
2017-03-24 22:16:43 +00:00
2017-03-24 22:16:43 +00:00
2017-03-24 22:16:43 +00:00
2017-03-24 22:16:43 +00:00
2017-03-24 22:16:43 +00:00
2017-03-24 22:16:43 +00:00
2017-03-24 22:16:43 +00:00
2017-03-24 22:16:43 +00:00
2017-03-24 22:16:43 +00:00
2017-03-24 22:16:43 +00:00
2017-03-24 22:16:43 +00:00
2016-03-03 08:50:19 -05:00
2017-03-24 22:16:43 +00:00
2017-04-04 15:54:46 +00:00
2017-03-24 22:16:43 +00:00
2016-01-27 11:44:10 -05:00
2017-03-06 20:58:04 +00:00
2017-03-30 19:19:54 +00:00
2017-05-11 18:17:26 +00:00
2013-10-19 11:56:51 -04:00
2017-05-08 17:36:33 +00:00
2016-09-01 20:17:58 +00:00
2017-05-08 18:48:07 +00:00
2016-03-03 21:56:23 -05:00
2016-08-09 19:01:35 +00:00
2016-12-05 15:20:56 +00:00
2017-03-24 22:16:43 +00:00