mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
[clipboard] Without HAVE_ACCESS this fragment does not make sense.
This commit is contained in:
parent
911155a862
commit
e572578765
@ -405,13 +405,13 @@ get_clipboard_text(void)
|
||||
void
|
||||
set_clipboard_text(unsigned char *data)
|
||||
{
|
||||
#ifdef HAVE_ACCESS
|
||||
unsigned char *f = get_opt_str("ui.clipboard_file", NULL);
|
||||
|
||||
if (f && *f) {
|
||||
unsigned char *filename = expand_tilde(f);
|
||||
|
||||
if (filename) {
|
||||
#ifdef HAVE_ACCESS
|
||||
if (access(filename, W_OK) >= 0) {
|
||||
FILE *out = fopen(filename, "a");
|
||||
|
||||
@ -420,10 +420,10 @@ set_clipboard_text(unsigned char *data)
|
||||
fclose(out);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
mem_free(filename);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/* GNU Screen's clipboard */
|
||||
if (is_gnuscreen()) {
|
||||
|
Loading…
Reference in New Issue
Block a user