Displaying 2 results from an estimated 2 matches for "create_script".
Did you mean:
createvm_script
2020 Feb 10
3
[nbdkit PATCH] eval: Allow user override of 'missing'
...plugins/eval/eval.c
@@ -1,5 +1,5 @@
/* nbdkit
- * Copyright (C) 2018-2019 Red Hat Inc.
+ * Copyright (C) 2018-2020 Red Hat Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -169,6 +169,12 @@ create_script (const char *method, const char *value)
return NULL;
}
+ /* Special case for user override of missing */
+ if (missing && strcmp (script, missing) == 0 && unlink (script) == -1) {
+ nbdkit_error ("unlink: %m");
+ return NULL;
+ }
+
fp = fopen (script,...
2020 Feb 10
0
Re: [nbdkit PATCH] eval: Allow user override of 'missing'
...> /* nbdkit
> - * Copyright (C) 2018-2019 Red Hat Inc.
> + * Copyright (C) 2018-2020 Red Hat Inc.
> *
> * Redistribution and use in source and binary forms, with or without
> * modification, are permitted provided that the following conditions are
> @@ -169,6 +169,12 @@ create_script (const char *method, const char *value)
> return NULL;
> }
>
> + /* Special case for user override of missing */
> + if (missing && strcmp (script, missing) == 0 && unlink (script) == -1) {
> + nbdkit_error ("unlink: %m");
> + return N...