Skip to content

Commit

Permalink
fixup! WIP: Add support for wrapping binaries (rpm, dracut, grubby)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgwalters committed May 3, 2019
1 parent 4d92ea7 commit 93a9c6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libpriv/rpmostree-kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ rpmostree_run_dracut (int rootfs_dfd,
O_RDWR | O_CLOEXEC,
&tmpf, error))
goto out;
if (glnx_loop_write (tmpf.fd, rpmostree_dracut_wrapper, sizeof (rpmostree_dracut_wrapper)) < 0
if (glnx_loop_write (tmpf.fd, rpmostree_dracut_wrapper, strlen (rpmostree_dracut_wrapper)) < 0
|| fchmod (tmpf.fd, 0755) < 0)
{
glnx_set_error_from_errno (error);
Expand Down

0 comments on commit 93a9c6e

Please sign in to comment.