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 9, 2019
1 parent fdab1c4 commit 7e33110
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 7e33110

Please sign in to comment.