~n-muench/ubuntu/oneiric/open-vm-tools/open-vm-tools.fix-836277

« back to all changes in this revision

Viewing changes to modules/linux/vmhgfs/inode.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2008-11-20 21:56:00 UTC
  • mfrom: (1.1.3 upstream) (2.2.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20081120215600-0jujiv17a2ja92xu
Tags: 2008.11.18-130226-1
* Replacing obsolete dh_clean -k with dh_prep.
* Merging upstream version 2008.11.18-130226.
* Updating debian directory for addition of pvscsi and vmxnet3 modules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
#include "cpName.h"
40
40
#include "cpNameLite.h"
41
 
#include "hgfsEscape.h"
42
41
#include "hgfsProto.h"
43
42
#include "hgfsUtil.h"
44
43
#include "inode.h"
284
283
      goto out;
285
284
   }
286
285
 
287
 
   /* Unescape the CP name. */
288
 
   result = HgfsEscape_Undo(fileName, result);
289
286
   *fileNameLength = result;
290
287
   req->payloadSize = reqSize + result;
291
288
 
729
726
         return -EINVAL;
730
727
      }
731
728
 
732
 
      /* Unescape the CP name. */
733
 
      result = HgfsEscape_Undo(fileName, result);
734
729
      *fileNameLength = result;
735
730
   }
736
731
   req->payloadSize = reqSize + result;
861
856
      return -EINVAL;
862
857
   }
863
858
 
864
 
   /* Unescape the CP name. */
865
 
   result = HgfsEscape_Undo(fileName, result);
866
859
   *fileNameLength = result;
867
860
   req->payloadSize = requestSize + result;
868
861
 
1411
1404
      goto out;
1412
1405
   }
1413
1406
 
1414
 
   /* Unescape the old CP name. */
1415
 
   result = HgfsEscape_Undo(oldName, result);
1416
1407
   *oldNameLength = result;
1417
1408
   reqSize += result;
1418
1409
 
1462
1453
      goto out;
1463
1454
   }
1464
1455
 
1465
 
   /* Unescape the new CP name. */
1466
 
   result = HgfsEscape_Undo(newName, result);
1467
1456
   *newNameLength = result;
1468
1457
   reqSize += result;
1469
1458
   req->payloadSize = reqSize;
1596
1585
      return -EINVAL;
1597
1586
   }
1598
1587
 
1599
 
   /* Unescape the symlink CP name. */
1600
 
   result = HgfsEscape_Undo(symlinkName, result);
1601
1588
   *symlinkNameLength = result;
1602
1589
   req->payloadSize = requestSize + result;
1603
1590
 
1642
1629
   /* Convert target name to CPName-lite format. */
1643
1630
   CPNameLite_ConvertTo(targetName, targetNameBytes - 1, '/');
1644
1631
 
1645
 
   /* Unescape the target CP-lite name. */
1646
 
   result = HgfsEscape_Undo(targetName, targetNameBytes - 1);
1647
1632
   *targetNameLength = result;
1648
1633
   req->payloadSize += result;
1649
1634