Skip to content

Commit 028c952

Browse files
Replace origin_rc with REPLACE_RC_FILE
fix typo
1 parent 21f00fb commit 028c952

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/patch/android/userd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ static void before_openat(hook_fargs4_t *args, void *udata)
290290
(args->local.data3 == 1) ? ORIGIN_RC_FILE : ORIGIN_RC_FILE2;
291291

292292
loff_t ori_len = 0;
293-
struct file *newfp = filp_open(origin_rc, O_WRONLY | O_CREAT | O_TRUNC, 0600);
293+
struct file *newfp = filp_open(REPLACE_RC_FILE, O_WRONLY | O_CREAT | O_TRUNC, 0600);
294294
if (!newfp || IS_ERR(newfp)) {
295295
log_boot("create replace rc error: %d\n", PTR_ERR(newfp));
296296
goto out;

0 commit comments

Comments
 (0)